package com.authine.cloudpivot.ext.enums;

/**
 * @program: gomro
 * @description:
 * @author: wlw
 * @create: 2021-09-18 19:02
 **/
public enum PayWayEnum {
    credit("Credit","信用支付");
    private String code;
    private String desc;

    PayWayEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static PayWayEnum get(String code) {

        for (PayWayEnum c : PayWayEnum.values()) {
            if (c.getCode().equals(code)) {
                return c;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
